package com.hiwan.system.pojo;

import java.io.Serializable;

import org.framework.dao.plugin.Page;

import com.hiwan.system.enumeration.ReturnCodeEnum;

public class ReturnInfo implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	/**
	 * 返回码
	 */
	private int retcode;
	/**
	 * 返回信息
	 */
	private String retmsg;
	/**
	 * 返回结果
	 */
	private Object result;
	
	private Page page;
	
	public ReturnInfo() {
		this.retcode = ReturnCodeEnum.error.getCode();
		this.retmsg = ReturnCodeEnum.error.getDesc();
	}
	
	
	public ReturnInfo(int retcode, String retmsg, Object result) {
		super();
		this.retcode = retcode;
		this.retmsg = retmsg;
		this.result = result;
	}
	
	
	public int getRetcode() {
		return retcode;
	}
	public void setRetcode(int retcode) {
		this.retcode = retcode;
	}
	public String getRetmsg() {
		return retmsg;
	}
	public void setRetmsg(String retmsg) {
		this.retmsg = retmsg;
	}
	public Object getResult() {
		return result;
	}
	public void setResult(Object result) {
		this.result = result;
	}
	public Page getPage() {
		return page;
	}
	public void setPage(Page page) {
		this.page = page;
	}
}
